/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package de.hsmannheim.pepa.patientenportal.apanwep.model;

import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.model.ModelWrapper;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * This class is a wrapper for {@link objects}.
 * </p>
 *
 * @author Cedric Nana
 * @see objects
 * @generated
 */
public class objectsWrapper implements objects, ModelWrapper<objects> {
	public objectsWrapper(objects objects) {
		_objects = objects;
	}

	@Override
	public Class<?> getModelClass() {
		return objects.class;
	}

	@Override
	public String getModelClassName() {
		return objects.class.getName();
	}

	@Override
	public Map<String, Object> getModelAttributes() {
		Map<String, Object> attributes = new HashMap<String, Object>();

		attributes.put("objectID", getObjectID());
		attributes.put("objectname", getObjectname());
		attributes.put("object_ID", getObject_ID());
		attributes.put("objecttypecode", getObjecttypecode());
		attributes.put("objecttypecoderole", getObjecttypecoderole());
		attributes.put("objectidtypecode_id", getObjectidtypecode_id());

		return attributes;
	}

	@Override
	public void setModelAttributes(Map<String, Object> attributes) {
		Long objectID = (Long)attributes.get("objectID");

		if (objectID != null) {
			setObjectID(objectID);
		}

		String objectname = (String)attributes.get("objectname");

		if (objectname != null) {
			setObjectname(objectname);
		}

		String object_ID = (String)attributes.get("object_ID");

		if (object_ID != null) {
			setObject_ID(object_ID);
		}

		Long objecttypecode = (Long)attributes.get("objecttypecode");

		if (objecttypecode != null) {
			setObjecttypecode(objecttypecode);
		}

		Long objecttypecoderole = (Long)attributes.get("objecttypecoderole");

		if (objecttypecoderole != null) {
			setObjecttypecoderole(objecttypecoderole);
		}

		Long objectidtypecode_id = (Long)attributes.get("objectidtypecode_id");

		if (objectidtypecode_id != null) {
			setObjectidtypecode_id(objectidtypecode_id);
		}
	}

	/**
	* Returns the primary key of this objects.
	*
	* @return the primary key of this objects
	*/
	@Override
	public long getPrimaryKey() {
		return _objects.getPrimaryKey();
	}

	/**
	* Sets the primary key of this objects.
	*
	* @param primaryKey the primary key of this objects
	*/
	@Override
	public void setPrimaryKey(long primaryKey) {
		_objects.setPrimaryKey(primaryKey);
	}

	/**
	* Returns the object i d of this objects.
	*
	* @return the object i d of this objects
	*/
	@Override
	public long getObjectID() {
		return _objects.getObjectID();
	}

	/**
	* Sets the object i d of this objects.
	*
	* @param objectID the object i d of this objects
	*/
	@Override
	public void setObjectID(long objectID) {
		_objects.setObjectID(objectID);
	}

	/**
	* Returns the objectname of this objects.
	*
	* @return the objectname of this objects
	*/
	@Override
	public java.lang.String getObjectname() {
		return _objects.getObjectname();
	}

	/**
	* Sets the objectname of this objects.
	*
	* @param objectname the objectname of this objects
	*/
	@Override
	public void setObjectname(java.lang.String objectname) {
		_objects.setObjectname(objectname);
	}

	/**
	* Returns the object_ i d of this objects.
	*
	* @return the object_ i d of this objects
	*/
	@Override
	public java.lang.String getObject_ID() {
		return _objects.getObject_ID();
	}

	/**
	* Sets the object_ i d of this objects.
	*
	* @param object_ID the object_ i d of this objects
	*/
	@Override
	public void setObject_ID(java.lang.String object_ID) {
		_objects.setObject_ID(object_ID);
	}

	/**
	* Returns the objecttypecode of this objects.
	*
	* @return the objecttypecode of this objects
	*/
	@Override
	public long getObjecttypecode() {
		return _objects.getObjecttypecode();
	}

	/**
	* Sets the objecttypecode of this objects.
	*
	* @param objecttypecode the objecttypecode of this objects
	*/
	@Override
	public void setObjecttypecode(long objecttypecode) {
		_objects.setObjecttypecode(objecttypecode);
	}

	/**
	* Returns the objecttypecoderole of this objects.
	*
	* @return the objecttypecoderole of this objects
	*/
	@Override
	public long getObjecttypecoderole() {
		return _objects.getObjecttypecoderole();
	}

	/**
	* Sets the objecttypecoderole of this objects.
	*
	* @param objecttypecoderole the objecttypecoderole of this objects
	*/
	@Override
	public void setObjecttypecoderole(long objecttypecoderole) {
		_objects.setObjecttypecoderole(objecttypecoderole);
	}

	/**
	* Returns the objectidtypecode_id of this objects.
	*
	* @return the objectidtypecode_id of this objects
	*/
	@Override
	public long getObjectidtypecode_id() {
		return _objects.getObjectidtypecode_id();
	}

	/**
	* Sets the objectidtypecode_id of this objects.
	*
	* @param objectidtypecode_id the objectidtypecode_id of this objects
	*/
	@Override
	public void setObjectidtypecode_id(long objectidtypecode_id) {
		_objects.setObjectidtypecode_id(objectidtypecode_id);
	}

	@Override
	public boolean isNew() {
		return _objects.isNew();
	}

	@Override
	public void setNew(boolean n) {
		_objects.setNew(n);
	}

	@Override
	public boolean isCachedModel() {
		return _objects.isCachedModel();
	}

	@Override
	public void setCachedModel(boolean cachedModel) {
		_objects.setCachedModel(cachedModel);
	}

	@Override
	public boolean isEscapedModel() {
		return _objects.isEscapedModel();
	}

	@Override
	public java.io.Serializable getPrimaryKeyObj() {
		return _objects.getPrimaryKeyObj();
	}

	@Override
	public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
		_objects.setPrimaryKeyObj(primaryKeyObj);
	}

	@Override
	public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
		return _objects.getExpandoBridge();
	}

	@Override
	public void setExpandoBridgeAttributes(
		com.liferay.portal.model.BaseModel<?> baseModel) {
		_objects.setExpandoBridgeAttributes(baseModel);
	}

	@Override
	public void setExpandoBridgeAttributes(
		com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
		_objects.setExpandoBridgeAttributes(expandoBridge);
	}

	@Override
	public void setExpandoBridgeAttributes(
		com.liferay.portal.service.ServiceContext serviceContext) {
		_objects.setExpandoBridgeAttributes(serviceContext);
	}

	@Override
	public java.lang.Object clone() {
		return new objectsWrapper((objects)_objects.clone());
	}

	@Override
	public int compareTo(
		de.hsmannheim.pepa.patientenportal.apanwep.model.objects objects) {
		return _objects.compareTo(objects);
	}

	@Override
	public int hashCode() {
		return _objects.hashCode();
	}

	@Override
	public com.liferay.portal.model.CacheModel<de.hsmannheim.pepa.patientenportal.apanwep.model.objects> toCacheModel() {
		return _objects.toCacheModel();
	}

	@Override
	public de.hsmannheim.pepa.patientenportal.apanwep.model.objects toEscapedModel() {
		return new objectsWrapper(_objects.toEscapedModel());
	}

	@Override
	public de.hsmannheim.pepa.patientenportal.apanwep.model.objects toUnescapedModel() {
		return new objectsWrapper(_objects.toUnescapedModel());
	}

	@Override
	public java.lang.String toString() {
		return _objects.toString();
	}

	@Override
	public java.lang.String toXmlString() {
		return _objects.toXmlString();
	}

	@Override
	public void persist()
		throws com.liferay.portal.kernel.exception.SystemException {
		_objects.persist();
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}

		if (!(obj instanceof objectsWrapper)) {
			return false;
		}

		objectsWrapper objectsWrapper = (objectsWrapper)obj;

		if (Validator.equals(_objects, objectsWrapper._objects)) {
			return true;
		}

		return false;
	}

	/**
	 * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
	 */
	public objects getWrappedobjects() {
		return _objects;
	}

	@Override
	public objects getWrappedModel() {
		return _objects;
	}

	@Override
	public void resetOriginalValues() {
		_objects.resetOriginalValues();
	}

	private objects _objects;
}